﻿using FluentNHibernate.Cfg.Db;

namespace Coleotrack.Service.Registration
{
    public class SqlServerPersistenceConfigurer : ISqlServerPersistenceConfigurer
    {
        public IPersistenceConfigurer GetPersistenceConfigurer(string connectionString)
        {
            return MsSqlConfiguration
                .MsSql2005
                .ConnectionString(c => c.Is(connectionString))
                .AdoNetBatchSize(10)
                .UseOuterJoin()
                .UseReflectionOptimizer();
        }
    }
}